package com.web.exiaodao.business.entity;

import com.web.webstart.base.entity.BaseEntity;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author eason
 * @ClassName: Banner
 * @Description: Banner图定义表
 * @date 2016-10-22 11:29:21
 */
@Entity
@Table(name = "tb_xa_banner")
@ApiModel(value = "Banner图定义表")
public class Banner extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "图片地址,图片地址")
    private String picurl;
    @ApiModelProperty(value = "链接地址,链接地址")
    private String linkurl;
    /**
     * 具体类型参加 {@link com.web.exiaodao.business.constant.JConstant.BannerType}
     */
    @ApiModelProperty(value = "类型（1：首页 2：游学 3:机构的房子 4：学乐/艺术品）,类型（1：首页 2：游学 3:机构的房子 4：学乐/艺术品）")
    private Integer type;
    @ApiModelProperty(value = "排序值,排序值")
    private Integer sort;
    @ApiModelProperty(value = "简要文字说明,简要文字说明")
    private String intro;
    @ApiModelProperty(value = "对象id,对象ID")
    private Long objectId;


    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    @Column(nullable = true, length = 255)
    public String getPicurl() {
        return picurl;
    }

    public void setLinkurl(String linkurl) {
        this.linkurl = linkurl;
    }

    @Column(nullable = true, length = 255)
    public String getLinkurl() {
        return linkurl;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(nullable = true, length = 50)
    public Integer getType() {
        return type;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Column(nullable = true, length = 50)
    public Integer getSort() {
        return sort;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Column(nullable = true, length = 50)
    public String getIntro() {
        return intro;
    }

    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }

    @Column(nullable = true, length = 50)
    public Long getObjectId() {
        return objectId;
    }


    @Override
    public String toString() {
        return "Banner{" +
                "picurl='" + picurl + '\'' +
                ", linkurl='" + linkurl + '\'' +
                ", type=" + type +
                ", sort=" + sort +
                ", intro='" + intro + '\'' +
                ", objectId=" + objectId +
                '}';
    }
}
